package com.ridaizu.model.form;

import java.util.Date;
import java.util.List;

import javax.faces.bean.SessionScoped;

import com.ridaizu.model.GoodsCatalog;
import com.ridaizu.model.Model;

@javax.faces.bean.ManagedBean(name = "goodsCatalogForm")
@SessionScoped
public class GoodsCatalogForm extends Model {

	private static final long serialVersionUID = 1L;

	private String id;

	private String name;

	private boolean delFlg;

	private String rgtOpt;

	private Date rgtDate;

	private String updOpt;

	private Date updDate;

	private GoodsCatalog selectedGoodsCatalog;

	private List<GoodsCatalog> selectedGoodsCatalogList;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public boolean isDelFlg() {
		return delFlg;
	}

	public void setDelFlg(boolean delFlg) {
		this.delFlg = delFlg;
	}

	public String getRgtOpt() {
		return rgtOpt;
	}

	public void setRgtOpt(String rgtOpt) {
		this.rgtOpt = rgtOpt;
	}

	public Date getRgtDate() {
		return rgtDate;
	}

	public void setRgtDate(Date rgtDate) {
		this.rgtDate = rgtDate;
	}

	public String getUpdOpt() {
		return updOpt;
	}

	public void setUpdOpt(String updOpt) {
		this.updOpt = updOpt;
	}

	public Date getUpdDate() {
		return updDate;
	}

	public void setUpdDate(Date updDate) {
		this.updDate = updDate;
	}

	public GoodsCatalog getSelectedGoodsCatalog() {
		return selectedGoodsCatalog;
	}

	public void setSelectedGoodsCatalog(GoodsCatalog selectedGoodsCatalog) {
		this.selectedGoodsCatalog = selectedGoodsCatalog;
	}

	public List<GoodsCatalog> getSelectedGoodsCatalogList() {
		return selectedGoodsCatalogList;
	}

	public void setSelectedGoodsCatalogList(
			List<GoodsCatalog> selectedGoodsCatalogList) {
		this.selectedGoodsCatalogList = selectedGoodsCatalogList;
	}

	public void clearAll() {
		this.id = null;
		this.name = null;
		this.delFlg = false;
		this.rgtOpt = null;
		this.rgtDate = null;
		this.updOpt = null;
		this.updDate = null;
		this.selectedGoodsCatalog = null;
		this.selectedGoodsCatalogList = null;
	}

}
